<template>
  <div class="base-news-detail">
    <div class="table w50">
      <div class="table-row-group" >
        <ul class="table-row">
          <li class="table-cell-title br0">编号</li>
          <li class="table-cell-content br0">{{formData.dataNo}}</li>
          <li class="table-cell-title br0">类别</li>
          <li class="table-cell-content">{{formData.subTypeDisplay}}</li>
        </ul>
      </div>
      <div class="table-row-group" >
        <ul class="table-row">
          <li class="table-cell-title br0">标题</li>
          <li class="table-cell-content br0">{{formData.title}}</li>
          <li class="table-cell-title br0">发布时间</li>
          <li class="table-cell-content">{{formData.publishTime}}</li>
        </ul>
      </div>
    </div>
    <br>
    <div class="base-news-content">新闻内容</div>
    <div>
      <Uediter :value="formData.content" :config="ueditor.config" ref="ue"></Uediter>
    </div>
  </div>
</template>
<script type="text/ecmascript-6">
  import PcDialog from 'components/dialog';
  import Uediter from '@/components/ueditor/UE.vue';
  export default{
    props: ['newsInfo'],
    components: {
      PcDialog, Uediter
    },
    data() {
      return {
        formData: this.newsInfo,
        ueditor: { // 富文本编辑
          value: '', // 默认文字
          config: {
            toolbars: [],
            initialFrameWidth: 958,
            initialFrameHeight: 750,
            autoHeightEnabled: false,
            scaleEnabled: false, // 设置不自动调整高度
            readonly: true, // 只读模式
            elementPathEnabled: false, // 删除元素路径
            wordCount: false    // 删除字数统计
          }
        }
      };
    },
    methods: {
    }
  };
</script>
<style>
  .base-news-detail {
    width: 958px;
  }
  .base-news-detail .table{
    display:table;
    border-collapse:collapse;
    border:1px solid #e5e5e5;
    width:100%;
    background:#ffffff;
  }
  .base-news-detail .table .table-row-group{
    display:table-row-group;
    width: 100%;
    border-top: 1px solid #e5e5e5;
    border-left:1px solid #e5e5e5;
  }
  .base-news-detail .table .table-row-group .table-row{
    display:table-row;
    height: 40px;
  }
  .base-news-detail .table .table-row-group .table-row .table-cell-title{
    display:table-cell;
    padding:0 5px;
    border-left:1px solid #e5e5e5;
    border-right:1px solid #e5e5e5;
    height: 40px;
    width: 160px;
    line-height: 40px;
    text-align:center;
    color: #4d4d4d;
  }
  .base-news-detail .table .table-row-group .table-row .table-cell-content{
    display:table-cell;
    padding:0 5px;
    border-left:1px solid #e5e5e5;
    border-right:1px solid #e5e5e5;
    height: 40px;
    width: 320px;
    line-height: 40px;
    text-indent: 20px;
    color: #1a1a1a;
  }
  .base-news-detail .table .table-row-group .table-row .br0{
    border-right:none;
  }
  .base-news-detail .el-table--border td{
    border-right:1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
  }
  .base-news-detail .table .w50 ul{
    box-sizing: border-box;
  }
  .base-news-detail .el-table--border td div{
    color:#000;
  }
  .base-news-detail .base-news-content{
    border-left:1px solid #e5e5e5;
    border-right:1px solid #e5e5e5;
    border-top:1px solid #e5e5e5;
    border-bottom:0px solid #e5e5e5;
    height: 40px;
    line-height: 40px;
    background:#ffffff;
    text-align: center;
    text-indent: 0px;
    font-size: 16px;
    color: #1a1a1a;
  }
</style>
